package com.kingdee.hackson.service;

import com.kingdee.hackson.entity.BizDataEntity;
import com.kingdee.hackson.entity.Position;

import java.util.List;

/**
 * 测试自动生成代码的逻辑Service接口
 *
 * @author songwh
 * @date 2021-12-09
 */
public interface IBizDataService {

    /**
     * 批量初始化数据
     *
     * @param datas
     */
    void batchInsert(List<BizDataEntity> datas);

    /**
     * 分页查询业务数据
     *
     * @param ids      ID集合
     * @param startNum 起始位置
     * @param count    显示数量
     * @return
     */
    List<Position> queryListPageByAuthIds(List<Long> ids, int startNum, int count);

    List<Position> queryListPageByAuthCode(String authCode, int startNum, int count);

    Long queryListPageCountByAuthIds(List<Long> authIds);

    Long queryListPageCountByAuthCode(String authCode);

    void truncate();

    Long queryListPageCountByStructCode(String structCode);

    List<Position> queryListPageByStructCode(String structCode, int startNum, int count);

    Long queryListPageCountByMergeTable(String authCode);

    List<Position> queryListPageByMergeTable(String authCode, int startNum, int count);

    List<Position> queryListPageByMergeTableWithStructNumber(String structNumber, int startNum, int count);

    Long queryListPageByMergeTableCountWithStructNumber(String structNumber);
}
